import request from '@/utils/request'
// 获取部门列表
export const getDepartMentAPI = () => request.get('/company/department')
// 获取部门负责人列表
export const getUserListAPI = () => request.get('/sys/user/simple')
// 新增部门
export const addDeptAPI = (data) => request.post('/company/department', data)
// 获取部门详情
export const getDepartmentDatailAPI = (id) => request.get(`/company/department/${id}`)
// 封装更新部门
export const updateDepartmentlAPI = (data) => request.get(`/company/department/${data.id}`, data)
// 删除部门
export const delDepartmentlAPI = (id) => request.get(`/company/department/${id}`)
